package com.zzyl.nursing.job;

import com.zzyl.nursing.service.IContractService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class ContractJob {

    @Autowired
    private IContractService iContractService;

    public void helloJob(){
        System.out.println("Hello Job!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
    }


    public void updateContractStatusJob(){
        iContractService.updateContractStatus();
        log.info("合同已更新！！！");
    }
}
